02. Quiz: Flowcharts (3-1)

DEFINITION: A flowchart is a visual diagram that outlines the solution to a problem through a series of logical statements. The order in which statements are evaluated and executed is called the control flow.

Conditional Logic

buy the item flowchart

Take a look at the flowchart above. What data type would best represent (Yes/No) if you have enough money to purchase the item?

SOLUTION: Boolean


Storming the Castle

storm the castle flowchart

Here’s a different flowchart for approaching the castle gates. If you decide to storm the castle, what is the immediate resulting outcome?

SOLUTION: A dragon appears and attacks!

Have questions? Head to Knowledge for discussion with the Udacity Community.